//
// Created by 86176 on 2021/11/24.
//

#ifndef CHENYUENEW_HEADFILTERCHAIN_H
#define CHENYUENEW_HEADFILTERCHAIN_H


#include "FilterChain.h"
#include "IoHandler.h"

#include <utility>

class HeadFilterChain: public FilterChain {
private:
    IoHandler *ioHandler;
public:
    explicit HeadFilterChain(std::string str):FilterChain(std::move(str)){ioHandler = nullptr;}

    bool getMessage(Session *pSession,IoBuffer* ioBuffer, Message *pMessage) override;

    void setIOHander(IoHandler *ioHandler1){ioHandler = ioHandler1;}

    //IoHandler *getIoHandler() const;

    void PostioBuffterToIocp(Session* session, Message *message);
};


#endif //CHENYUENEW_HEADFILTERCHAIN_H
